<template>
  <div>
    <HeaderBar :currentName="_t18('download_center1', ['aams', 'robinhood2'])"></HeaderBar>
    <img src="https://s2023.oss-cn-qingdao.aliyuncs.com/echo2.0c003645b4e5b43e2a18180bd5a4335b9.png" style="width: 100%; height: auto;">

    <div style="padding: 0 0.4rem"> 
      <div v-for="item in list" style="margin-top: 5%;border-bottom: 1px solid #ddd;padding-bottom: 6%">
        <div style="display: flex;justify-content: space-between">
          <div style="font-weight: bold;font-size: 16px">
            期数：{{item.number}}
          </div>
          <div style="font-weight: bold;font-size: 14px;text-transform: uppercase;">
            币种:{{item.sellSymbol}}
          </div>
        </div>
        <div style="color: #aeadb2;margin-top: 2%">
          上限：{{item.maxCount}}
        </div>
        <div style="color: #aeadb2;margin-top: 2%">
          人数：{{item.currentCount}}
        </div>
      </div>
    </div>
  </div>
</template>
<script setup>
import { showToast } from 'vant'
import {_t18} from "@/utils/public";
import {getwalletRecordlist} from "@/api/trade";
import {getnodelist,getbuyNode} from "@/api/user";
// 撤单
const list = ref([])
const route = useRoute();
const cancelOrder = async () => {

  const res = await getnodelist({})
  list.value = res.rows
}
const getbuyNodeAdd = async (id) => { 
  const nodeMgrId=id
const res = await getbuyNode({nodeMgrId}) 
if(res.code == '200'){
  showToast('购买成功')
}else{
  showToast(res.msg)
}
}
onMounted(() => {
  cancelOrder()
})

</script>
<style scoped lang="scss">

</style>
